﻿using System;
using EkStudio.com.bean.xml.RootInterface;
using EkStudio.com.bean.xml.reflection;
using System.Collections.Generic;

namespace EkStudio.com.bean.xml.WorkFlow.Node
{
    /// <summary>
    /// 节点的扩展代码
    /// </summary>
    public class WflowEventPluginNodeList : BillObjectInterface
    {
        private List<WflowEventPluginNodeEvent> item = null;

        [XmlElement("event")]
        public List<WflowEventPluginNodeEvent> Item
        {
            get
            {
                return item;
            }

            set
            {
                item = value;
            }
        }

        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {
            }
        }

        public object Clone()
        {
            WflowEventPluginNodeList clone = new WflowEventPluginNodeList();
            clone.Item = new List<WflowEventPluginNodeEvent>();
            if (item != null && item.Count > 0)
            {
                foreach(WflowEventPluginNodeEvent it in item)
                {
                    WflowEventPluginNodeEvent cl = it.Clone() as WflowEventPluginNodeEvent;
                    if (cl != null)
                    {
                        clone.Item.Add(cl);
                    }
                }
            }
            return clone;
        }
    }
}
